package com.example.springbott.mapper;

import com.example.springbott.bean.MarketCart;
import com.example.springbott.bean.MarketCartExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketCartMapper {
    long countByExample(MarketCartExample example);

    int deleteByExample(MarketCartExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCart record);

    int insertSelective(MarketCart record);

    List<MarketCart> selectByExample(MarketCartExample example);

    MarketCart selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketCart record, @Param("example") MarketCartExample example);

    int updateByExample(@Param("record") MarketCart record, @Param("example") MarketCartExample example);

    int updateByPrimaryKeySelective(MarketCart record);

    int updateByPrimaryKey(MarketCart record);

    Integer updateCheckStatus(@Param("productId") int productId, @Param("isChecked") Integer isChecked, @Param("id") Integer id);

    Integer updateByKerb(@Param("goodsId") Integer goodsId, @Param("number") Integer number, @Param("productId") Integer productId, @Param("id") Integer id);

    Integer DeleteByKerb(@Param("productId") Integer productId, @Param("id") Integer id);

    Integer updateNumber(@Param("number") int number);
}